From 1e2fc48ada71772332a09839328d66d2a2312e5f Mon Sep 17 00:00:00 2001 From: "vh249@arcadians.cl.cam.ac.uk" Date: Thu, 15 Sep 2005 12:21:23 +0000 Subject: [PATCH] add support for ipv6 address in choose_vnc_display function getting the port from the latest field, not the first one. fix suggested by Nickolai Zeldovich. close bug #231 Signed-off-by: Vincent Hanquez --- tools/python/xen/xm/create.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/python/xen/xm/create.py b/tools/python/xen/xm/create.py index 482db15b89..8bc6c3e3d1 100644 --- a/tools/python/xen/xm/create.py +++ b/tools/python/xen/xm/create.py @@ -673,7 +673,7 @@ def choose_vnc_display(): # Local port is field 3. y = x.split()[3] # Field is addr:port, split off the port. - y = y.split(':')[1] + y = y.split(':')[-1] r.append(int(y)) return r -- 2.30.2